import { http } from '@/utils/http.ts'
import type { pageParams } from '@/types/global'
import type { HotRecommend } from '@/types/hot'

type HotParam = pageParams & { subType?: string }

export const getHotRecommendApi = (url: string, data?: HotParam ) => {
  return http<HotRecommend>({
    url,
    method: 'GET',
    data
  })
}
